package com.maxiaoke.boot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ThymeleafController {

    @GetMapping("/view")
    public String testview(Model model){
        //传递变量
        model.addAttribute("msg","你好,码小课");
        //显示模板:templates/success.html
        return "success";
    }

}
